var arr=[{count:100},{count:90},{count:120},{count:150}];
var arr1=[];
while(arr1.length<4){
    for(var i=0;i<arr.length;i++){
        var max=arr[0].count;
        var index=0;
        if(max<arr[i].count){
            max=arr[i].count;
            index=i;
        }
    }
    arr1.push(arr[index]);
    arr.splice(index,1)
}
console.log(arr1)



